vcFeatures - Module
vcFeatures module.
See in: Overview
Classes (top-level): vcAmbientOcclusionMode, vcBooleanOperation, vcColliderType, vcFeatureType, vcObject
Enums: vcAmbientOcclusionMode, vcBooleanOperation, vcColliderType, vcFeatureType
Example: Import vcFeatures
"""Import module with an alias name.""" import vcFeatures as vc_fea
Example: Create New Component Feature
""" This example shows how to create a block feature in the root feature of a component. """ import vcCore as vc import vcFeatures as vc_fea comp = vc.getComponent() root_fea = comp.RootFeature block = root_fea.create(vc_fea.vcFeatureType.BLOCK, "NewBlock")
Example: Loop All Component Features
""" This example shows how to traverse the feature tree of a component. """ import vcCore as vc comp = vc.getComponent() root = comp.RootFeature feas = list(root.Children) # traverse whole feature tree while feas: fea = feas.pop(0) # take the first item from the list print (f"fea: {fea}") feas.extend(fea.Children)